QT_COPY_TO   = $$replace(OUT_PWD,/,\\)\\$${DESTDIR}

#QMAKE_PRE_LINK += xcopy /Y /F E:\\Qt\\mingw-2010.04\\bin\\libgcc_s_dw2-1.dll $${QT_COPY_TO} &
QMAKE_POST_LINK += xcopy /Y /F E:\\Qt\\mingw-2010.04\\bin\\libgcc_s_dw2-1.dll $${QT_COPY_TO} &

CONFIG(debug, debug|release) {
	contains( QT, core       ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtCored4.dll $${QT_COPY_TO} &
	contains( QT, gui        ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtGuid4.dll $${QT_COPY_TO} &
	contains( QT, multimedia ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtMultimediad4.dll $${QT_COPY_TO} &
	contains( QT, network    ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtNetworkd4.dll $${QT_COPY_TO} &
	contains( QT, script     ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtScriptd4.dll $${QT_COPY_TO} &
	contains( QT, webkit     ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtWebKitd4.dll $${QT_COPY_TO} &
	#contains( QT, xml        ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtXmld4.dll $${QT_COPY_TO} &
	QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtXmld4.dll $${QT_COPY_TO} &
}
CONFIG(release, debug|release) {
	contains( QT, core       ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtCore4.dll $${QT_COPY_TO} &
	contains( QT, gui        ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtGui4.dll $${QT_COPY_TO} &
	contains( QT, multimedia ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtMultimedia4.dll $${QT_COPY_TO} &
	contains( QT, network    ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtNetwork4.dll $${QT_COPY_TO} &
	contains( QT, script     ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtScript4.dll $${QT_COPY_TO} &
	contains( QT, webkit     ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtWebKit4.dll $${QT_COPY_TO} &
	#contains( QT, xml        ): QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtXml4.dll $${QT_COPY_TO} &
	QMAKE_POST_LINK += xcopy /Y /F %QTDIR%\\bin\\QtXml4.dll $${QT_COPY_TO} &
}

